package com.example.bookKeep.vo;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class ProcessStatisticsVO {
    /**
     * 本月加工
     */
    private BigDecimal sum;

    private BigDecimal huan;

    private BigDecimal noHuan;

    /**
     * 未开票
     */
    private int notInvoiced;

    private int notDetailInvoiced;

    public BigDecimal getNoHuan() {
        if(sum==null){
            sum= BigDecimal.ZERO;
        }
        if(huan==null){
            huan= BigDecimal.ZERO;
        }
        return sum.subtract(huan);
    }
}
